<?php require_once('Connections/local.php'); ?>

<?php

session_start();
if (!isset($_SESSION['MM_COD_USUARIO']))
    header("location:login.php");
	if (($_SESSION['MM_ROLE'] == 'socio'))
    header("location:pagina.php");
	
	?>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administracion Sefran Sport</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="js/jquery.tools.min.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
	<div id="content">
	
		<div id="header">
			<h1><a href="#">SEFRAN SPORT ADMINISTRACION</a></h1>
				
		</div>
		<div id="menu">
			<ul>	
				<li class="selected"><a href="consultareserva.php" target="main">Reservas</a> /</li>
				<li><a href="agregaradmin.php" target="main">Agregar Usuario</a> /</li>
				<li><a href="insertarpista.php" target="main">Insertar Pistas</a> /</li>
				<li><a href="borrar.php" target="main">Borrar Pista</a> /</li>
                <li><a href="http://127.0.0.1/prestashop/sefran-sport/index.php?controller=AdminLogin&token=979ab3ef708427f0e1c94c5a3c054d48&redirect=AdminHome">Administrar Tienda</a></li>
			</ul>
		</div><div class="inner_copy"></div>
		<div id="container">	
			<div id="main">
				<h2>Sefran<span class="blue">Sport</span></h2>
<iframe frameborder="0" align="right" width="100%" height="100%" src="admin.php" name="main"> </iframe>
				<div style="clear:both"></div>
			</div>
			<?php
echo "logeado como: ". $_SESSION['MM_Username']."<br>" ;
echo "<div align=right>";
			echo "<h1>"."<a href=cerrarsesion.php>salir</a>"."</h1>";
				echo "</div>";
echo "usted es: ". $_SESSION['MM_ROLE'];	
			
				?>		
		</div>				
		</div>			 
	
</div>
<script type="text/javascript">$(document).ready(function() {$("#infinite").scrollable().circular(); });</script>
</body>
</html>